<template>
	<div class="page-wrap">
		<div class="page-content p-0">
			<div class="page-column p-0">
				<div class="page-form p-x-0">
					<el-form
						:model="ruleForm"
						:rules="rules"
						label-position="left"
						label-width="154px"
						ref="ruleForm"
						label-suffix="："
					>
						<el-row>
							<el-col :span="24">
								<el-form-item label="σy线性因子" prop="DPCYSIGANum">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPCYSIGANum"
										v-model.number="ruleForm.DPCYSIGANum"
										:disabled="this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>
								<el-tabs class="m-20" v-model="activeNameY" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPCYSIGAList"
										:key="index"
									>
										<el-table ref="multipleTable" :data="item.DPCYSIGATab" tooltip-effect="dark" border>
											<el-table-column prop="name" align="center" width="100"></el-table-column>
											<el-table-column prop="DPCYSIGA1" label="A" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA1"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA1'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA1"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGA2" label="B" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA2"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA2'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA2"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGA3" label="C" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA3"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA3'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA3"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGA4" label="D" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA4"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA4'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA4"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGA5" label="E" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA5"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA5'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA5"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGA6" label="F" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGA6"
														:prop="'DPCYSIGAtab.'+scope.$index+'.DPCYSIGA6'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGA6"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</el-tab-pane>
								</el-tabs>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="24">
								<el-form-item label="σy指数因子" prop="DPCYSIGBNum">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPCYSIGBNum"
										v-model.number="ruleForm.DPCYSIGBNum"
										:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>
								<el-tabs class="m-20" v-model="activeNameY" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPCYSIGBList"
										:key="index"
									>
										<el-table ref="multipleTable" :data="item.DPCYSIGBTab" tooltip-effect="dark" border>
											<el-table-column prop="name" align="center" width="100"></el-table-column>
											<el-table-column prop="DPCYSIGB1" label="A" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB1"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB1'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB1"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGB2" label="B" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB2"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB2'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB2"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGB3" label="C" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB3"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB3'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB3"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGB4" label="D" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB4"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB4'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB4"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGB5" label="E" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB5"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB5'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB5"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCYSIGB6" label="F" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCYSIGB6"
														:prop="'DPCYSIGBtab.'+scope.$index+'.DPCYSIGB6'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCYSIGB6"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</el-tab-pane>
								</el-tabs>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="24">
								<el-form-item label="σx线性因子" prop="DPCZSIGANum">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPCZSIGANum"
										v-model.number="ruleForm.DPCZSIGANum"
										:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>
								<el-tabs class="m-20" v-model="activeNameY" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPCZSIGAList"
										:key="index"
									>
										<el-table ref="multipleTable" :data="item.DPCZSIGATab" tooltip-effect="dark" border>
											<el-table-column prop="name" align="center" width="100"></el-table-column>
											<el-table-column prop="DPCZSIGA1" label="A" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA1"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA1'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA1"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGA2" label="B" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA2"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA2'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA2"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGA3" label="C" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA3"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA3'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA3"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGA4" label="D" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA4"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA4'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA4"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGA5" label="E" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA5"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA5'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA5"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGA6" label="F" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGA6"
														:prop="'DPCZSIGAtab.'+scope.$index+'.DPCZSIGA6'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGA6"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</el-tab-pane>
								</el-tabs>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="24">
								<el-form-item label="σz指数因子" prop="DPCZSIGBNum">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPCZSIGBNum"
										v-model.number="ruleForm.DPCZSIGBNum"
										:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>
								<el-tabs class="m-20" v-model="activeNameY" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPCZSIGBList"
										:key="index"
									>
										<el-table ref="multipleTable" :data="item.DPCZSIGBTab" tooltip-effect="dark" border>
											<el-table-column prop="name" align="center" width="100"></el-table-column>
											<el-table-column prop="DPCZSIGB1" label="A" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB1"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB1'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB1"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGB2" label="B" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB2"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB2'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB2"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGB3" label="C" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB3"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB3'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB3"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGB4" label="D" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB4"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB4'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB4"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGB5" label="E" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB5"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB5'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB5"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="DPCZSIGB6" label="F" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.DPCZSIGB6"
														:prop="'DPCZSIGBtab.'+scope.$index+'.DPCZSIGB6'"
													>
														<el-input
															minlength="1"
															maxlength="20"
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,3})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.DPCZSIGB6"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</el-tab-pane>
								</el-tabs>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<el-form-item label="Y方向线型因子" prop="DPYSCALE001Num">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPYSCALE001Num"
										v-model.number="ruleForm.DPYSCALE001Num"
										:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPZSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>

								<el-tabs class="m-20" v-model="activeName1" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPYSCALE001List"
										:key="index"
									>
										<el-form-item
											label-width="0px"
											label
											:prop="'DPYSCALE001List.'+index+'.DPYSCALE001' "
											:rules="rules.DPYSCALE001"
										>
											<el-input
												size="medium"
												class="mediumForm"
												oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,5})?).*$/g, '$1')"
												v-model="item.DPYSCALE001"
											></el-input>
										</el-form-item>
									</el-tab-pane>
								</el-tabs>

								<el-form-item label="Z方向线型因子" prop="DPZSCALE001Num">
									<el-input
										size="medium"
										class="mediumForm"
										@input="addDPZSCALE001Num"
										v-model.number="ruleForm.DPZSCALE001Num"
										:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0"
									>
										<template slot="append">套</template>
									</el-input>
								</el-form-item>
								<el-tabs class="m-20" v-model="activeName2" type="card">
									<el-tab-pane
										:label="item.index"
										:name="item.index"
										v-for="(item,index) in ruleForm.DPZSCALE001List"
										:key="index"
									>
										<el-form-item
											label-width="0px"
											label
											:prop="'DPZSCALE001List.'+index+'.DPZSCALE001' "
											:rules="rules.DPZSCALE001"
										>
											<el-input
												size="medium"
												class="mediumForm"
												oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,5})?).*$/g, '$1')"
												v-model="item.DPZSCALE001"
											></el-input>
										</el-form-item>
									</el-tab-pane>
								</el-tabs>
							</el-col>
						</el-row>
					</el-form>
				</div>
				<div class="bottom-btn">
					<el-button
						type="primary"
						:disabled="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
						:loading="loading"
						@click="submitFun"
					>下一步</el-button>
					<el-button
						type="primary"
						v-if="this.senstivity_Data.DPCYSIGANum>0 || this.senstivity_Data.DPCYSIGBNum>0 || this.senstivity_Data.DPCZSIGANum>0 || this.senstivity_Data.DPCZSIGBNum>0 || this.senstivity_Data.DPYSCALE001Num>0 || this.senstivity_Data.DPZSCALE001Num>0"
						:loading="loading"
						@click="tijiao"
					>提交</el-button>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
import selectPara from "@/components/selectPara"
import commCheckbox from "@/components/commCheckbox"
import ImageCropper from "@/components/ImageCropper"
import FixBottomButton from "@/components/FixBottomButton"
import ueditor from "@/components/ueditor"
import textLength from "@/components/common/comp/textLength"
import { commPara } from "@/mixins/mixins"
import { mapState } from "vuex"
import Axios from "axios"
import { dome, selecttext } from "@/utils/verify.js"

export default {
	name: "aboutUs",
	props: {},
	mixins: [commPara],
	components: {
		selectPara,
		ImageCropper,
		textLength,
		commCheckbox,
		FixBottomButton,
		ueditor,
	},

	data() {
		var CHEVACST001 = (rule, value, callback) => {
			if (value == "") {
				callback(new Error("输入值不能为空"))
			} else if (value < 0.0 || value > 1000.0) {
				callback(new Error("输入范围为[0.0，1000.0]"))
			} else {
				callback()
			}
		}
		var CHRELCST001 = (rule, value, callback) => {
			if (value == "") {
				callback(new Error("输入值不能为空"))
			} else if (value < 0.0 || value > 1000.1) {
				callback(new Error("输入范围为[0.0，1000.1]"))
			} else {
				callback()
			}
		}

		return {
			activeTab: "4",
			activeName1: "1",
			activeName2: "1",
			activeNameY: "1",
			ruleForm: {
				DPYSCALE001Num: "0",
				DPZSCALE001Num: "0",
				DPZSCALE001List: [],
				DPYSCALE001List: [],
				DPCYSIGANum: "0",
				DPCYSIGAList: [],
				DPYSCALE001List: [],
				DPCYSIGBNum: "0",
				DPCYSIGBList: [],
				DPCZSIGANum: "0",
				DPCZSIGAList: [],
				DPCZSIGBNum: "0",
				DPCZSIGBList: [],
			},

			rules: {
				// item1: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// item2: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// item3: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// item4: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// item5: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// item6: [
				// 	{
				// 		validator: dome(1.6e-6, 10),
				// 		trigger: "change",
				// 	},
				// ],
				// DPYSCALE001: [
				// 	{
				// 		validator: dome(0.01, 100),
				// 		trigger: "change",
				// 	},
				// ],
				// DPZSCALE001: [
				// 	{
				// 		validator: dome(0.01, 100),
				// 		trigger: "change",
				// 	},
				// ],
			},

			loading: false,
		}
	},
	computed: {
		...mapState({
			senstivity_Data: (state) => state.token.senstivity_Data,
		}),
	},
	created() {
		// this.queryDetail()
	},
	mounted() {
		this.setData()
	},
	methods: {
		setData() {
			this.ruleForm.DPYSCALE001Num = this.senstivity_Data.DPYSCALE001.length
			this.addDPYSCALE001Num(this.ruleForm.DPYSCALE001Num)

			this.ruleForm.DPZSCALE001Num = this.senstivity_Data.DPZSCALE001.length
			this.addDPZSCALE001Num(this.ruleForm.DPZSCALE001Num)

			this.ruleForm.DPCYSIGANum = this.senstivity_Data.DPCYSIGA.length
			this.addDPCYSIGANum(this.ruleForm.DPCYSIGANum)

			this.ruleForm.DPCYSIGBNum = this.senstivity_Data.DPCYSIGB.length
			this.addDPCYSIGBNum(this.ruleForm.DPCYSIGBNum)

			this.ruleForm.DPCZSIGANum = this.senstivity_Data.DPCZSIGA.length
			this.addDPCZSIGANum(this.ruleForm.DPCZSIGANum)

			this.ruleForm.DPCZSIGBNum = this.senstivity_Data.DPCZSIGB.length
			this.addDPCZSIGBNum(this.ruleForm.DPCZSIGBNum)
		},
		queryDetail() {
			// 查询明细
		},
		addDPCYSIGANum(value) { 
			this.ruleForm.DPCYSIGAList = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPCYSIGAList.push({
					index: index.toString(),
					DPCYSIGATab: [
						{
							name: "σy线性因子",
							DPCYSIGA1: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][0]
								: "0",
							DPCYSIGA2: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][1]
								: "0",
							DPCYSIGA3: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][2]
								: "0",
							DPCYSIGA4: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][3]
								: "0",
							DPCYSIGA5: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][4]
								: "0",
							DPCYSIGA6: this.senstivity_Data.DPCYSIGA[index - 1]
								? this.senstivity_Data.DPCYSIGA[index - 1][5]
								: "0",
						},
					],
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPCYSIGANum = this.ruleForm.DPCYSIGANum
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		addDPCYSIGBNum(value) { 
			this.ruleForm.DPCYSIGBList = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPCYSIGBList.push({
					index: index.toString(),
					DPCYSIGBTab: [
						{
							name: "σy指数因子",
							DPCYSIGB1: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][0]
								: "0",
							DPCYSIGB2: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][1]
								: "0",
							DPCYSIGB3: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][2]
								: "0",
							DPCYSIGB4: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][3]
								: "0",
							DPCYSIGB5: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][4]
								: "0",
							DPCYSIGB6: this.senstivity_Data.DPCYSIGB[index - 1]
								? this.senstivity_Data.DPCYSIGB[index - 1][5]
								: "0",
						},
					],
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPCYSIGBNum = this.ruleForm.DPCYSIGBNum
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		addDPCZSIGANum(value) { 
			this.ruleForm.DPCZSIGAList = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPCZSIGAList.push({
					index: index.toString(),
					DPCZSIGATab: [
						{
							name: "σx线性因子",
							DPCZSIGA1: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][0]
								: "0",
							DPCZSIGA2: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][1]
								: "0",
							DPCZSIGA3: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][2]
								: "0",
							DPCZSIGA4: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][3]
								: "0",
							DPCZSIGA5: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][4]
								: "0",
							DPCZSIGA6: this.senstivity_Data.DPCZSIGA[index - 1]
								? this.senstivity_Data.DPCZSIGA[index - 1][5]
								: "0",
						},
					],
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPCZSIGANum = this.ruleForm.DPCZSIGANum
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		addDPCZSIGBNum(value) { 
			this.ruleForm.DPCZSIGBList = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPCZSIGBList.push({
					index: index.toString(),
					DPCZSIGBTab: [
						{
							name: "σz指数因子",
							DPCZSIGB1: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][0]
								: "0",
							DPCZSIGB2: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][1]
								: "0",
							DPCZSIGB3: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][2]
								: "0",
							DPCZSIGB4: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][3]
								: "0",
							DPCZSIGB5: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][4]
								: "0",
							DPCZSIGB6: this.senstivity_Data.DPCZSIGB[index - 1]
								? this.senstivity_Data.DPCZSIGB[index - 1][5]
								: "0",
						},
					],
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPCZSIGBNum = this.ruleForm.DPCZSIGBNum
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		addDPYSCALE001Num(value) {
			this.ruleForm.DPYSCALE001List = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPYSCALE001List.push({
					index: index.toString(),
					DPYSCALE001: this.senstivity_Data.DPYSCALE001[index - 1]
						? this.senstivity_Data.DPYSCALE001[index - 1]
						: "0",
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPYSCALE001Num = this.ruleForm.DPYSCALE001Num
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		addDPZSCALE001Num(value) {
			this.ruleForm.DPZSCALE001List = []
			for (let index = 1; index <= parseInt(value); index++) {
				this.ruleForm.DPZSCALE001List.push({
					index: index.toString(),
					DPZSCALE001: this.senstivity_Data.DPZSCALE001[index - 1]
						? this.senstivity_Data.DPZSCALE001[index - 1]
						: "0",
				})
			}
			let tempdata = JSON.parse(JSON.stringify(this.senstivity_Data))
			tempdata.DPZSCALE001Num = this.ruleForm.DPZSCALE001Num
			this.$store.dispatch("upData_senstivity_Data", tempdata)
		},
		submitFun() {
			this.$refs.ruleForm.validate((valid) => {
				if (valid) {
					let tempdata = JSON.parse(
						JSON.stringify(this.senstivity_Data)
					) 
					let tempDPCYSIGA = this.ruleForm.DPCYSIGAList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCYSIGATab[0]) {
								if (item.DPCYSIGATab[0].hasOwnProperty(key)) {
									const element = item.DPCYSIGATab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCYSIGB = this.ruleForm.DPCYSIGBList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCYSIGBTab[0]) {
								if (item.DPCYSIGBTab[0].hasOwnProperty(key)) {
									const element = item.DPCYSIGBTab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCZSIGA = this.ruleForm.DPCZSIGAList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCZSIGATab[0]) {
								if (item.DPCZSIGATab[0].hasOwnProperty(key)) {
									const element = item.DPCZSIGATab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCZSIGB = this.ruleForm.DPCZSIGBList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCZSIGBTab[0]) {
								if (item.DPCZSIGBTab[0].hasOwnProperty(key)) {
									const element = item.DPCZSIGBTab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					if (this.ruleForm.DPCYSIGANum > 0) {
						tempdata.DPCYSIGA = tempDPCYSIGA
					} else {
						tempdata.DPCYSIGA = []
					}

					if (this.ruleForm.DPCYSIGBNum > 0) {
						tempdata.DPCYSIGB = tempDPCYSIGB
					} else {
						tempdata.DPCYSIGB = []
					}

					if (this.ruleForm.DPCZSIGANum > 0) {
						tempdata.DPCZSIGA = tempDPCZSIGA
					} else {
						tempdata.DPCZSIGA = []
					}

					if (this.ruleForm.DPCZSIGBNum > 0) {
						tempdata.DPCZSIGB = tempDPCZSIGB
					} else {
						tempdata.DPCZSIGB = []
					}

					if (this.ruleForm.DPYSCALE001Num > 0) {
						let tempDPYSCALE001 = this.ruleForm.DPYSCALE001List.map(
							(item) => {
								return parseFloat(item.DPYSCALE001)
							}
						)
						tempdata.DPYSCALE001 = tempDPYSCALE001
					} else {
						tempdata.DPYSCALE001 = []
					}

					if (this.ruleForm.DPZSCALE001Num > 0) {
						let tempDPZSCALE001 = this.ruleForm.DPZSCALE001List.map(
							(item) => {
								return parseFloat(item.DPZSCALE001)
							}
						)
						tempdata.DPZSCALE001 = tempDPZSCALE001
					} else {
						tempdata.DPZSCALE001 = []
					}
					// tempdata.SETPAGEINDEX = this.activeTab
					this.$store.dispatch("upData_senstivity_Data", tempdata) 
					let params = {
						batchid: this.$route.query.id,
						batchinfo: "MINGAN",
						submitjson: JSON.stringify(tempdata),
					}
					// console.log(params)
					this.$appApi
						.BATCH_SUBMIT(params)
						.then((res) => {
							// console.log(res)
							var str = res.data.substring(0, 1)
							var message = res.data.substring(6)
							if (str == "E") {
								this.$notify.error({
									title: "提交失败！",
									message: message,
									type: "success",
								})
							} else if (str == "S") {
								this.$notify({
									message: "提交成功！",
									type: "success",
								})
							}
						})
						.catch((err) => {
							console.log(err)
						})
					this.$emit("changeActiveTab", this.activeTab)
					this.$store.dispatch(
						"change_senstivity_showTab",
						this.activeTab
					)
				}
			})
		},
		tijiao() {
			this.$refs.ruleForm.validate((valid) => {
				if (valid) {
					let tempdata = JSON.parse(
						JSON.stringify(this.senstivity_Data)
					)

					let tempDPCYSIGA = this.ruleForm.DPCYSIGAList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCYSIGATab[0]) {
								if (item.DPCYSIGATab[0].hasOwnProperty(key)) {
									const element = item.DPCYSIGATab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCYSIGB = this.ruleForm.DPCYSIGBList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCYSIGBTab[0]) {
								if (item.DPCYSIGBTab[0].hasOwnProperty(key)) {
									const element = item.DPCYSIGBTab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCZSIGA = this.ruleForm.DPCZSIGAList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCZSIGATab[0]) {
								if (item.DPCZSIGATab[0].hasOwnProperty(key)) {
									const element = item.DPCZSIGATab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					let tempDPCZSIGB = this.ruleForm.DPCZSIGBList.map(
						(item) => {
							let tempDDVDEPOS = []
							for (const key in item.DPCZSIGBTab[0]) {
								if (item.DPCZSIGBTab[0].hasOwnProperty(key)) {
									const element = item.DPCZSIGBTab[0][key]
									tempDDVDEPOS.push(parseFloat(element))
								}
							}
							tempDDVDEPOS.splice(0, 1)
							return tempDDVDEPOS
						}
					)

					if (this.ruleForm.DPCYSIGANum > 0) {
						tempdata.DPCYSIGA = tempDPCYSIGA
					} else {
						tempdata.DPCYSIGA = []
					}

					if (this.ruleForm.DPCYSIGBNum > 0) {
						tempdata.DPCYSIGB = tempDPCYSIGB
					} else {
						tempdata.DPCYSIGB = []
					}

					if (this.ruleForm.DPCZSIGANum > 0) {
						tempdata.DPCZSIGA = tempDPCZSIGA
					} else {
						tempdata.DPCZSIGA = []
					}

					if (this.ruleForm.DPCZSIGBNum > 0) {
						tempdata.DPCZSIGB = tempDPCZSIGB
					} else {
						tempdata.DPCZSIGB = []
					}

					if (this.ruleForm.DPYSCALE001Num > 0) {
						let tempDPYSCALE001 = this.ruleForm.DPYSCALE001List.map(
							(item) => {
								return parseFloat(item.DPYSCALE001)
							}
						)
						tempdata.DPYSCALE001 = tempDPYSCALE001
					} else {
						tempdata.DPYSCALE001 = []
					}

					if (this.ruleForm.DPZSCALE001Num > 0) {
						let tempDPZSCALE001 = this.ruleForm.DPZSCALE001List.map(
							(item) => {
								return parseFloat(item.DPZSCALE001)
							}
						)
						tempdata.DPZSCALE001 = tempDPZSCALE001
					} else {
						tempdata.DPZSCALE001 = []
					}
					tempdata.SETPAGEINDEX = this.activeTab
					let params = {
						batchid: this.$route.query.id,
						batchinfo: "MINGAN",
						submitjson: JSON.stringify(tempdata),
					} 
					this.$appApi
						.BATCH_SUBMIT(params)
						.then((res) => { 
							var str = res.data.substring(0, 1)
							if (str == "E") {
								let message = res.data.substring(6)
								this.$notify.error({
									title: "提交失败！",
									message: message,
									type: "success",
								})
							} else if (str == "S") {
								this.$notify({
									message: "提交成功！",
									type: "success",
								})
								this.$router.go(-1)
							}
						})
						.catch((err) => {
							console.log(err)
						})
				}
			})
		},
		
	},
}
</script>
<style lang="scss" scoped>
.page-flex-row /deep/ .el-collapse-item__header {
	background: #f3f9fe;
}
</style>